<?php
class TeamModel extends Model{
	public function team($id){
		$sql = "select * from team where id=".$id;
		return $this->_m->query($sql);
	}

	public function pcount($id){
		$sql = "select count(*) as a from player where tid=$id";
		return $this->_m->query($sql);
	}

	public function player($id){
		$sql = "select * from player where tid=$id";
		return $this->_m->query($sql);
	}	
}
?>